<template>
  <div class="preson">

  </div>
</template>

<script setup lang="ts" name="Preson">
// 引入ts声明的类型时,需加type
  import {type PersonInter,type PersonList} from '@/types'
  // let person:PersonInter = {id:'20241325001',name:'张三',age:60}
  let personList:PersonList = [
    {id:'20241325001',name:'张三',age:50},
    {id:'20241325002',name:'李四',age:40},
    {id:'20241325003',name:'王五',age:30}
  ]
</script>

<style scoped>
.preson {
  background-color: skyblue;
  box-shadow: 0 0 10px 0;
  padding: 10px;
  border-radius: 10px;
}
</style>
